const template = `
    <div class="shopcar-wraper">
        <div class="icon" @click="flag=!flag">车{{orderNum}}</div>
        <div class="price">￥{{orderPrice}}</div>
        <div class="pay">支付</div>

        <ul class="order-list" v-show="flag" >
            <li v-for="(item,i) in orderList" :key="item.id" v-if="item.num">
                <span class="name">{{item.name}}</span>
                <span class="price">￥{{item.price}}</span>
                <span class="num">{{item.num}}</span>
                
                
            </li>
        </ul>
    </div>
`

export default {
    template,
    props: {
        orderPrice: {
            type: Number,
            default:0
        },
        orderNum: {
            type:Number,
            default:0
        },
        orderList:{
            type:Array,
            default:[]
        }
    },
    data(){
        return{
            flag:true
        }
    },
    computed:{
        getList(){

        }
    }
}